package com.example.iteratorpattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/20  23:16:27
 * @className Iterator
 * @verson 1.0.0
 */
public abstract class Iterator {

    //得到第一个
    public abstract Object first();
    //得到下一个
    public abstract Object next();
    //是否是最后一个
    public abstract boolean isDone();
    //当前对象
    public abstract Object currentItem();
}
